package com.example.project2.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data//会自动生成getter and setter
@NoArgsConstructor//生成无参数的构造方法
@AllArgsConstructor//生成一个包含所有参数的构造方法
@ApiModel("User表")
public class UserTable implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("学号")
    int id;
    @ApiModelProperty("姓名")
    String name;
    @ApiModelProperty("年龄")
    int age;
}
